﻿<%@ Page Title="" Language="C#" MasterPageFile="~/BasicBase/BasicBase.master" StylesheetTheme="Content"
    AutoEventWireup="true" CodeFile="ListenList.aspx.cs" Inherits="BasicBase_Listenner_ListenList" %>

<%@ Register src="../../UserContral/ListPageContral.ascx" tagname="ListPageContral" tagprefix="uc1" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <ul class="topmenu">
        <li>
           单位： <asp:DropDownList ID="DptDepartment" Width="300px" runat="server">
            </asp:DropDownList>
        </li>
        <li>
        姓名：<asp:TextBox ID="txtName" runat="server"></asp:TextBox>
        </li>
        <li>
            <asp:LinkButton ID="BtnSearch" runat="server" onclick="BtnSearch_Click">查 询</asp:LinkButton>
        </li>
    </ul>
    <table border="0" cellpadding="0" cellspacing="0" class="dialog" width="770px">
        <caption>
            <span>接警人员查询</span></caption>
        <tr>
            <td style="width: 100%; margin: 0; padding: 0;" align="left">
                <asp:GridView ID="GvwList" runat="server" AutoGenerateColumns="False"  PageSize="15"
                    onrowdatabound="GvwList_RowDataBound" AllowPaging="True">
                    <Columns>
                        <asp:TemplateField ItemStyle-Width="30px" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <asp:Label ID="lblID" runat="server"></asp:Label>&nbsp;
                            </ItemTemplate>

<ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
                        </asp:TemplateField>
                        <asp:BoundField DataField="UserName" HeaderText="姓 名" />
                        <asp:BoundField DataField="DepartmentName" HeaderText="单 位" />
                        <asp:BoundField DataField="LoginID" HeaderText="工 号" />
                        <asp:BoundField DataField="State" HeaderText="状 态" />
                        <asp:BoundField DataField="UserType" HeaderText="用户类型" />
                        <asp:TemplateField HeaderText="最后登陆时间">                   
                            <ItemTemplate>
                                <%# DateTime.Parse(Eval("LastLoginTime").ToString()).ToString("yy-MM-dd hh:ss") %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                        <ItemTemplate>
                        <a href='ListenEdit.aspx?ID=<%# Eval("ID") %>'>密码修改</a>
                        </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                   <PagerTemplate></PagerTemplate>
                </asp:GridView>
            </td>
        </tr>
    </table>
    <uc1:ListPageContral ID="ListPageContral1" runat="server" PageSize="15" OnPageSizeChange="ListPageContral1_PageSizeChange" />
   
</asp:Content>
